package message;

import entity.ChessUser;
import socket.ChessClient;

public class ServerLoginSucMessage extends BaseMessage {

    private ChessUser chessUser;

    public ServerLoginSucMessage(ChessUser chessUser) {
        this.chessUser = chessUser;
    }

    @Override
    public void sendToServer() {

    }

    @Override
    public void selfExecute() {
        ChessClient.getInstance().getLoginDialog().loginSuc(chessUser);
    }
}
